#ifndef MYUDP_H
#define MYUDP_H

#include <QThread>
#include <QtNetwork/QUdpSocket>
#include <QHostAddress>

class MyTransceiver : public QThread
{
    Q_OBJECT

public:
    explicit MyTransceiver();
    void sendData();
    QByteArray buffer;
    ~MyTransceiver();

signals:
    void newData();
    
public slots:
    void readData();

private:
    QUdpSocket *socket;

};
#endif // MYUDP_H
